package com.sufen.seckill.study.FaceCoding;

public class Singleton {
    private static volatile Singleton s;
    public Singleton(){}
    public Singleton getSingleton(){
        if(s==null){
            synchronized (Singleton.class){
                if(s==null){
                    s=new Singleton();
                }
            }
        }
        return s;
    }
}
